<%--
  Created by IntelliJ IDEA.
  User: 26056
  Date: 2021/5/12
  Time: 21:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员界面</title>
</head>
<body>

<tr>
    <td>
        <div><%=request.getSession().getAttribute("user") == null ? "你好，游客" : "你好，管理员："+request.getSession().getAttribute("username") %></div>
    </td>

    <td>
        <form id="collection" action="/AdminArticleDisplay" method="post">
            <input type="hidden" name="user" value=${user}>
            <input type="hidden" name="send" value="dispArticle">
            <input type="submit" value="管理文章">
        </form>
    </td>

    <td>
        <form action="/AdminCommentDisplay" method="post">
            <input type="submit" value="管理评论">
        </form>
    </td>

    <td>
        <form action="/logout" method="post">
            <input type="submit" value="退出">
        </form>
    </td>
</tr>

</body>
</html>
